package com.lrl.security.validate.core.Image;

import com.lrl.security.validate.core.ValidateCode;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * @author LRL
 * 图片验证
 * 子类
 */
public class ImageCode extends ValidateCode {
    private BufferedImage bufferedImage;

    public ImageCode(BufferedImage bufferedImage, String code, int expireTime) {
        super(code,expireTime);
        this.bufferedImage = bufferedImage;
    }

    public ImageCode(BufferedImage bufferedImage, String code, LocalDateTime expireTime) {
        super(code,expireTime);
        this.bufferedImage = bufferedImage;
    }

    public BufferedImage getBufferedImage() {
        return bufferedImage;
    }

    public void setBufferedImage(BufferedImage bufferedImage) {
        this.bufferedImage = bufferedImage;
    }

}
